package com.yudean.esb;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@SpringBootApplication
@EntityScan(basePackages = {"com.framework.entity","com.yudean.esb.domain.erp","com.yudean.esb.domain.mds","com.yudean.esb.domain.esb"})
@EnableTransactionManagement    //开启事务支持，开启之后只需要在Service层添加@Transactional即可加入事务管理
@ImportResource(locations = {"classpath:cxf-config.xml"})
@Slf4j
public class ErpWebserviceApplication {

    public static void main(String[] args) {
        SpringApplication.run(ErpWebserviceApplication.class, args);
    }

}
